<html>
   <head>
      <title>JOSNP test</title>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
      <script type="text/javascript">
      $(function() {
      	$.getJSON('http://www.server.com:8081/jsonp/helloword?jsonp=?', function(data) {
      		$('#get-console').html(data['josnp-get']);
      	});
      	//$.getJSON('http://www.server.com:8081/s8/s?heart=1&longUrl=http%3A%2F%2Fwww.wps.cn%2Fproduct%2F&jsonp=?', function(data) {
      	//	alert(data);
      	//});
      	$.getJSON('http://www.server.com:8081/s8/s?heart=1&longUrl=http://www.wps.cn/product/&jsonp=?', function(shorturl) {
      		alert(shorturl);
      		$.getJSON('http://www.server.com:8081/s8/l?jsonp=?&format=json&shorturl=' + shorturl, function(longurl) {
      			alert(longurl);
      		});
      	});
      });
      </script>
   </head>
   <body>
     <div>http GET: <span id="get-console"></span></div>
   </body>
 </html>
